<template>
  <div class="vue-box sbot" >
    <!-- ------- 内容部分 ------- -->
    <div class="c-panel">
      <el-form v-if="m" :inline="true">
        <sa-info name="序号" br>{{ m.id }}</sa-info>
        <sa-info type="text" name="广告名" :value="m.name" br></sa-info>
        <sa-info type="text" name="识别码" :value="m.code" br></sa-info>
        <sa-info type="enum" name="广告类型" :jv="dims.ADS_TYPE" :value="m.type" br />
        <sa-info type="datetime" name="申请时间" :value="m.applyTime" br />
        <sa-info type="img-list" name="LOGO" :value="m.img" br />
        <sa-info type="img-list" name="缩略图" :value="m.thumbnail" br />
        <sa-info type="enum" name="审核状态" :jv="dims.AUDIT_STATUS" :value="m.status" br />
        <sa-info name="描述" br>{{ m.note }}</sa-info>
      </el-form>
    </div>
  </div>
</template>

<script>
export default {
  name: 'ads-apply-info',
  props: { param: Object },
  data() {
    return {
      id: this.param.id,
      dims: sa.$sys.getCurd(),
      sa: sa,
      m: {},
      tagsList: this.param.tagsList,
    }
  },
  created: function () {
    sa.ajax('/ads/apply/getById', { id: this.id }, function (res) {
      this.m = res.data;
    }.bind(this), { type: "get" });
  },
  methods: {
    getTagFlag(tags, id) {
      return parseTag(tags, id)
    }
  }
}
</script>

<style scoped>
.stags {
  display: flex;
  justify-content: start;

  span {
    margin-left: 2px;
  }
}
</style>
